import request from '@/utils/request'

// 查询会员等级字典列表
export function listVip_level(query) {
  return request({
    url: '/admin/vip_level/list',
    method: 'get',
    params: query
  })
}

// 查询会员等级字典详细
export function getVip_level(id) {
  return request({
    url: '/admin/vip_level/' + id,
    method: 'get'
  })
}

// 新增会员等级字典
export function addVip_level(data) {
  return request({
    url: '/admin/vip_level',
    method: 'post',
    data: data
  })
}

// 修改会员等级字典
export function updateVip_level(data) {
  return request({
    url: '/admin/vip_level',
    method: 'put',
    data: data
  })
}

// 删除会员等级字典
export function delVip_level(id) {
  return request({
    url: '/admin/vip_level/' + id,
    method: 'delete'
  })
}

// 导出会员等级字典
export function exportVip_level(query) {
  return request({
    url: '/admin/vip_level/export',
    method: 'get',
    params: query
  })
}
